![](images/java.gif) This is about as exciting as Kaffe 0.8 gets! |
Listing 1 shows a simple Java program that converts uppercase text to lowercase and vice versa.
The reason I'm showing you this program instead of the obligitory "Hello World" program is to illustrate the differences between a language such as Java and the scripting languages such as Perl and Shell scripts we have been looking at previously. If you cast your minds back you will remember that the case conversion script we wrote in chapter 4 was little more than 3 lines of code.
You will probably also notice the similarity between the Java code and that of C or C++. Whilst Java may look like C/C++ it lacks many of the fuctions of these languages, such as typedefs and operator overloading. Infact Java acts more like dynamic languages such as Smalltalk and Lisp. Unfortunalty to cover any more then the very basics of Java would require six more tutorials, and this, unfortunalty is my last (for now!). However I have included as much Java documentation as I can get my hands on, on the CD for you to browse at your leasure. |